/**
 * Copyright 2011 Enjoy Change, Inc. All rights reserved.
 * Use is subject to license terms.
 */
package com.enjoychange.enjoy.infrastructure;

import com.enjoychange.enjoy.domain.Account;

/**
 * 账号的仓储实现
 * 
 * @author Administrator
 * @date May 31, 2011
 */
public interface IAccountRepository {
	/**
	 * 保存账号
	 * @param account
	 * @return
	 */
	public int saveAccount(Account account);

	public void saveDeposit();
    /**
     * 判断账号是否已经存在
     * @param account
     * @return
     */
	public boolean isAccountExist(Account account);
   
    /**
     * 根据用户登录的邮箱查询保存于数据库中的密码
     * @param account
     * @return
     */
	public String queryPasswordByEmail(Account account);

}
